<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>*我的购物车</title>
    <meta name="keywords" content="DeathGhost,DeathGhost.cn,web前端设,移动WebApp开发"/>
    <meta name="description" content="DeathGhost.cn::H5 WEB前端设计开发!"/>
    <meta name="author" content="DeathGhost"/>
    <link th:href="@{/style/style.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/style/bootstrap.btn.css}" rel="stylesheet">
    <script type="text/javascript" th:src="@{/js/public.js}"></script>
    <script type="text/javascript" th:src="@{/js/jquery.js}"></script>
    <script type="text/javascript" th:src="@{/js/jqpublic.js}"></script>
    <script type="text/javascript" th:src="@{/js/cart.js}"></script>
</head>
<body>
<!--引用头部导航栏代码块-->
<div th:replace="~{commons/common::top}"></div>
<!--Start content-->
<form action="#">
    <div class="gwc" style=" margin:auto;">
        <table cellpadding="0" cellspacing="0" class="gwc_tb1">
            <tr>
                <td class="tb1_td1"></td>
                <td class="tb1_td1">图片</td>
                <td class="tb1_td3">商品</td>
                <td class="tb1_td6">单价</td>
                <td class="tb1_td5">数量</td>
                <td class="tb1_td6">总价格</td>
                <td class="tb1_td6">操作</td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="0" class="gwc_tb2" id="table2">
            <tr th:each="orderitem:${orderItemList}">
                <td class="tb2_td1"><input id="checkAll" disabled class="allselect" type="checkbox" checked/></td>
                <td class="tb2_td2"><img th:src="${orderitem.meal.meal_image}"/></td>
                <td class="tb1_td3">[[${orderitem.meal.meal_name}]]</td>
                <td class="tb1_td4">￥[[${orderitem.meal.meal_price_now}]]</td>
                <td class="tb1_td5">
                    <input id="min2" th:if="${orderitem.num != 1}" name="min2"
                           th:onclick="'minmeal('+${orderitem.meal.meal_id}+')'"
                           style=" width:30px; height:30px;border:1px solid #ccc;" type="button" value="-"/>
                    <input id="min3" th:if="${orderitem.num == 1}" name="min2"
                           style=" width:30px; height:30px;border:1px solid #ccc;" type="button" value="-"/>
                    <input id="text_box2" name="text_box2" type="text" th:value="${orderitem.num}"
                           style=" width:40px;height:28px; text-align:center; border:1px solid #ccc;"/>
                    <input id="add2" name="add2" th:onclick="'addmeal('+${orderitem.meal.meal_id}+')'"
                           style=" width:30px; height:30px;border:1px solid #ccc;" type="button" value="+"/>
                </td>
                <td class="tb1_td6">￥[[${orderitem.meal.meal_price_now * orderitem.num}]]</td>
                <td class="tb1_td7"><a th:onclick="'deletemealcart('+${orderitem.meal.meal_id}+')'"
                                       style="cursor:pointer" id="delcart2">删除</a></td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="0" class="gwc_tb3">
            <tr>
                <td class="tb1_td1"><input disabled class="allselect" type="checkbox" checked/></td>
                <td class="tb1_td1">全选</td>
                <td class="tb3_td1">
                </td>
                <td class="tb3_td2 GoBack_Buy Font14">
                    <a th:href="@{/shopList}">继续购物</a></td>

                <td class="tb3_td3">合计:<span>￥[[${num}]]</span>
                    <span style=" color:#ff5500;"></span></td>
                <td th:if="${num != 0}" class="tb3_td4"><a th:href="@{'/orderByMoney?num='+${num}}" style="cursor:pointer" class="jz2"
                                       id="jz2">结算</a></td>
            </tr>
        </table>
    </div>
</form>
<!--End content-->
<!--引用底部栏代码块-->
<div th:replace="~{commons/common::last}"></div>
</body>
</html>
